<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<div class="layui-header" th:fragment="header">
    <div class="layui-logo layui-hide-xs layui-bg-black"></div>
    <h1 class="header-title">SMBMS超市订单管理系统</h1>

    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-md-inline-block">
            <a href="javascript:;">
<!--                <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">-->
                <label sec:authentication="name"></label>
            </a>
            <dl class="layui-nav-child">
                <dd><a th:href="@{'/personal/information'}">个人资料</a></dd>
                <dd><a th:href="@{'/user/revisePassword'}">修改密码</a></dd>
                <dd sec:authorize="hasRole('ROLE_ADMIN')"><a th:href="@{'/user/flushCache'}">清空缓存</a></dd>
                <dd><a href="/logout">注销</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
            <a href="javascript:;">
                <i class="layui-icon layui-icon-more-vertical"></i>
            </a>
        </li>
    </ul>
</div>

<div class="layui-side layui-bg-black" th:fragment="sider">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree" lay-filter="test">
            <li class="layui-nav-item"><a th:href="@{/index}">首页</a></li>
            <li class="layui-nav-item"><a th:href="@{/bill/billList}">订单管理</a></li>
            <li class="layui-nav-item"><a th:href="@{/provider/providerList}">供应商管理</a></li>
            <li class="layui-nav-item"><a th:href="@{/user/userList}">用户管理</a></li>
            <li class="layui-nav-item"><a th:href="@{/customer/customerList}">客户信息</a></li>
        </ul>
    </div>
</div>

<!--<div class="layui-footer" th:fragment="footer">-->
<!--    &lt;!&ndash; 底部固定区域 &ndash;&gt;-->
<!--    底部固定区域-->
<!--</div>-->
<script type="text/javascript">

  function revisePassword() {
      $.post({
          url:'/user/revisePassword',
          data:{'newPassword':'1234567','oldPassword':'1234567'},
          success: function (data){
              alert(data)
          }
      })
  }

</script>

</body>
</html>